<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Slimore\Mvc\Controller | Slimore</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Slimore</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-Slimore.Mvc.html" title="Summary of Slimore\Mvc"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li>
						<a href="namespace-None.html">
							None						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.html">
							Slimore<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.Exception.html">
							Exception						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-Slimore.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Database.html">
							Database						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Debug.html">
							Debug						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Http.html">
							Http						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Image.html">
							Image						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Log.html">
							Log						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Middleware.html">
							Middleware						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.Mvc.html">
							Mvc						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Pagination.html">
							Pagination						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Upload.html">
							Upload						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-Slimore.Mvc.Application.html">Application</a></li>
				<li class="active"><a href="class-Slimore.Mvc.Controller.html">Controller</a></li>
				<li><a href="class-Slimore.Mvc.Model.html">Model</a></li>
				<li><a href="class-Slimore.Mvc.View.html">View</a></li>
			</ul>



			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-Slimore.Mvc.Exception.html">Exception</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Controller</h1>


	<div class="description">
	<p>Class Controller</p>
	</div>









	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-Slimore.html">Slimore</a>\<a href="namespace-Slimore.Mvc.html">Mvc</a><br>
		<b>Package:</b> Slimore\Mvc<br>

				<b>Author:</b>
				Pandao<br>
			<b>Located at</b> <a href="source-class-Slimore.Mvc.Controller.html#20-294" title="Go to source code">Slimore/Mvc/Controller.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#59-71" title="Go to source code">__construct</a>( )</code>

			<div class="description short">
				<p>Constructor</p>
			</div>

			<div class="description detailed hidden">
				<p>Constructor</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="init" id="_init">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_init">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#74-81" title="Go to source code">init</a>( )</code>

			<div class="description short">
				<p>Initialization (supplementary) method</p>
			</div>

			<div class="description detailed hidden">
				<p>Initialization (supplementary) method</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="dbConnection" id="_dbConnection">

			<td class="attributes"><code>
				 protected 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_dbConnection">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#84-91" title="Go to source code">dbConnection</a>( <span>string <var>$name</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd>null</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="json" id="_json">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_json">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#94-110" title="Go to source code">json</a>( <span>array <var>$array</var></span>, <span>boolean <var>$return</var> = <span class="php-keyword1">false</span></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$array</var></dt>
						<dd></dd>
						<dt><var>$return</var></dt>
						<dd>false</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="js" id="_js">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_js">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#113-123" title="Go to source code">js</a>( <span>string|array <var>$script</var></span>, <span>boolean <var>$wrap</var> = <span class="php-keyword1">false</span></span> )</code>

			<div class="description short">
				<p>Using javascript</p>
			</div>

			<div class="description detailed hidden">
				<p>Using javascript</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$script</var></dt>
						<dd></dd>
						<dt><var>$wrap</var></dt>
						<dd>false</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="javascript" id="_javascript">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_javascript">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#126-136" title="Go to source code">javascript</a>( <span>string|array <var>$script</var></span>, <span>boolean <var>$wrap</var> = <span class="php-keyword1">false</span></span> )</code>

			<div class="description short">
				<p>Alias js() method</p>
			</div>

			<div class="description detailed hidden">
				<p>Alias js() method</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$script</var></dt>
						<dd></dd>
						<dt><var>$wrap</var></dt>
						<dd>false</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="printr" id="_printr">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_printr">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#139-148" title="Go to source code">printr</a>( <span>mixed <var>$array</var></span> )</code>

			<div class="description short">
				<p>Using pre format tag formatted printing array</p>
			</div>

			<div class="description detailed hidden">
				<p>Using pre format tag formatted printing array</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$array</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="console" id="_console">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_console">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#151-161" title="Go to source code">console</a>( <span>string <var>$message</var></span>, <span>string <var>$type</var> = <span class="php-quote">&quot;log&quot;</span></span> )</code>

			<div class="description short">
				<p>Like/Using javascript console object</p>
			</div>

			<div class="description detailed hidden">
				<p>Like/Using javascript console object</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$message</var></dt>
						<dd></dd>
						<dt><var>$type</var></dt>
						<dd>"log"</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="gotoURL" id="_gotoURL">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_gotoURL">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#164-178" title="Go to source code">gotoURL</a>( <span>string <var>$url</var></span>, <span>boolean <var>$base</var> = <span class="php-keyword1">true</span></span> )</code>

			<div class="description short">
				<p>Using javascript location.href go to url</p>
			</div>

			<div class="description detailed hidden">
				<p>Using javascript location.href go to url</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$url</var></dt>
						<dd></dd>
						<dt><var>$base</var></dt>
						<dd>true</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="config" id="_config">

			<td class="attributes"><code>
				 protected 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_config">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#181-190" title="Go to source code">config</a>( <span>string <var>$name</var></span> )</code>

			<div class="description short">
				<p>Application (re)configure</p>
			</div>

			<div class="description detailed hidden">
				<p>Application (re)configure</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="redirect" id="_redirect">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_redirect">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#193-204" title="Go to source code">redirect</a>( <span>string <var>$path</var></span> )</code>

			<div class="description short">
				<p>Redirect controller</p>
			</div>

			<div class="description detailed hidden">
				<p>Redirect controller</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$path</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="render" id="_render">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_render">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#207-222" title="Go to source code">render</a>( <span>string <var>$tpl</var></span>, <span>array <var>$data</var> = []</span>, <span>string <var>$suffix</var>,…</span> )</code>

			<div class="description short">
				<p>Override \Slim\Slim::render method on controller</p>
			</div>

			<div class="description detailed hidden">
				<p>Override \Slim\Slim::render method on controller</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$tpl</var></dt>
						<dd></dd>
						<dt><var>$data</var></dt>
						<dd>[]</dd>
						<dt><var>$suffix</var>,…</dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="setViewPath" id="_setViewPath">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setViewPath">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#225-233" title="Go to source code">setViewPath</a>( <span>string <var>$path</var></span> )</code>

			<div class="description short">
				<p>Set view path</p>
			</div>

			<div class="description detailed hidden">
				<p>Set view path</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$path</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getViewPath" id="_getViewPath">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getViewPath">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#236-244" title="Go to source code">getViewPath</a>( )</code>

			<div class="description short">
				<p>Get view path</p>
			</div>

			<div class="description detailed hidden">
				<p>Get view path</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__get" id="___get">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___get">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#247-259" title="Go to source code">__get</a>( <span> <var>$name</var></span> )</code>

			<div class="description short">
				<p>Getter</p>
			</div>

			<div class="description detailed hidden">
				<p>Getter</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__call" id="___call">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___call">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#262-275" title="Go to source code">__call</a>( <span> <var>$method</var></span>, <span> <var>$args</var></span> )</code>

			<div class="description short">
				<p>Member method overloading</p>
			</div>

			<div class="description detailed hidden">
				<p>Member method overloading</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$method</var></dt>
						<dd></dd>
						<dt><var>$args</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__callStatic" id="___callStatic">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___callStatic">#</a>
			<code><a href="source-class-Slimore.Mvc.Controller.html#278-293" title="Go to source code">__callStatic</a>( <span> <var>$method</var></span>, <span> <var>$args</var></span> )</code>

			<div class="description short">
				<p>Static member method overloading</p>
			</div>

			<div class="description detailed hidden">
				<p>Static member method overloading</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$method</var></dt>
						<dd></dd>
						<dt><var>$args</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>











		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="app" id="$app">
			<td class="attributes"><code>
				protected  
				Slim\Slim
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Controller.html#29-32" title="Go to source code"><var>$app</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$app" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="db" id="$db">
			<td class="attributes"><code>
				protected  
				mixed
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Controller.html#35-38" title="Go to source code"><var>$db</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$db" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="log" id="$log">
			<td class="attributes"><code>
				protected  
				mixed
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Controller.html#41-44" title="Go to source code"><var>$log</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$log" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="viewPath" id="$viewPath">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Controller.html#47-50" title="Go to source code"><var>$viewPath</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$viewPath" class="anchor">#</a>
					<code><span class="php-quote">'../app/views/'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="viewSuffix" id="$viewSuffix">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Mvc.Controller.html#53-56" title="Go to source code"><var>$viewSuffix</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$viewSuffix" class="anchor">#</a>
					<code><span class="php-quote">'.php'</span></code>
				</div>
			</td>
		</tr>
			</table>
		</div>






</div>
	</div>

	<div id="footer">
		Slimore API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
